#ifndef FONT_RENDERER_HPP
#define FONT_RENDERER_HPP

#include "GlobalDefines.hpp"
#include "ftgl.h"
#include "utils/Log.hpp"

class FontRenderer
{
public:
  FontRenderer(int size = 12, std::string fontToLoad="./resources/fonts/default/default.ttf");

  ~FontRenderer();

  void Render(std::string s, Vec2i pos, Vec3d color = Vec3d(1.0,1.0,1.0));

  Vec2i GetSizeOf(std::string s);

  bool Error();

private:
  FTBufferFont *font;
};

#endif